package com.zhengshang.api.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhengshang.common.annotation.Excel;
import com.zhengshang.common.core.domain.BaseEntity;

/**
 * 用户签到记录对象 app_signin_record
 *
 * @author zhengshang
 * @date 2021-03-10
 */
public class AppSigninRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 签到记录ID */
    private Long id;

    /** 签到人ID */
    @Excel(name = "签到人ID")
    private Long userId;

    /** 签到时间 */
    @Excel(name = "签到时间")
    private String signinDate;


    /** 本日签到次数 */
    private Integer signinCount;

    /** 连续签到天数 */
    @Excel(name = "连续签到天数")
    private Integer signinContinuityDays;

    /** 奖励金币 */
    @Excel(name = "奖励金币")
    private BigDecimal rewardCoin;

    /** 广告记录ID */
    @Excel(name = "广告记录ID")
    private Long advertisementRecordId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setSigninDate(String signinDate)
    {
        this.signinDate = signinDate;
    }

    public String getSigninDate()
    {
        return signinDate;
    }

    public Integer getSigninContinuityDays() {
        return signinContinuityDays;
    }

    public void setSigninContinuityDays(Integer signinContinuityDays) {
        this.signinContinuityDays = signinContinuityDays;
    }

    public void setRewardCoin(BigDecimal rewardCoin)
    {
        this.rewardCoin = rewardCoin;
    }

    public BigDecimal getRewardCoin()
    {
        return rewardCoin;
    }

    public Long getAdvertisementRecordId() {
        return advertisementRecordId;
    }

    public void setAdvertisementRecordId(Long advertisementRecordId) {
        this.advertisementRecordId = advertisementRecordId;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public Integer getSigninCount() {
        return signinCount;
    }

    public void setSigninCount(Integer signinCount) {
        this.signinCount = signinCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("signinDate", getSigninDate())
                .append("signinContinuityDays", getSigninContinuityDays())
                .append("rewardCoin", getRewardCoin())
                .append("signinCount", getSigninCount())
                .append("advertisementRecordId", getAdvertisementRecordId())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}